<template>
  <div id="app" :key="key">
    <keep-alive>
      <router-view v-if="($route.meta.keepAlive)"></router-view>
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive"></router-view>
  </div>
</template>
<script>
export default {
  data(){
    return{
      key:1
    }
  }, 
  provide: function () {
    return {
      logout: this.logout1
    }
  },
  methods: {
    logout1(){
      this.key+=1
    }
  },
  created() {
    
  },
}
</script>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  // color: #fff;
}
html,body,#app{
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}
.ivu-btn-ghost{
  color: #333 !important; 
}
.line_text{
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.center{
  padding: 10px 0;
  background: rgba($color: #5E72E4, $alpha: .1);
}
.btn_r{
  margin-right: 8px;
}
.btn_r1{
  margin-right: 20px;
}
.flex{
  display: flex;
}
.flex_sb{
  display: flex;
  justify-content: space-between;
}
.flex_w{
  display: flex;
  flex-wrap: wrap;
}
.flex_sa{
  display: flex;
  justify-content: space-around;
}
.flex_c{
  display: flex;
  justify-content: center;
}
.flex_a{
  display: flex;
  align-items: center;
}
.flex_ca{
  display: flex;
  justify-content: center;
}
.btn{
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -khtml-user-select: none;
  user-select: none;
  position: relative;
  cursor: pointer;
  &:hover{
    &::before{
      position: absolute;
      z-index: 1;
      content: ' ';
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(255, 255, 255, 0.1);
    }
  }
}
.border_view{
  background: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 2px 0 rgba($color: #000000, $alpha: .1);
}
</style>
